import request from '@/utils/request'
export default{
  getListByPage(current, limit, queryObject) {
    return request({
      url: `/policy/pageCondition/${current}/${limit}`,
      method: 'post',
      data: queryObject
    })
  },
  // 删除
  deleteById(id) {
    return request({
      url: `/policy/delete/${id}`,
      method: 'delete'
    })
  },
  // 添加
  add(teacher) {
    return request({
      url: `/policy/add`,
      method: 'post',
      data: teacher
    })
  },
  // 根据id查询
  getById(id) {
    return request({
      url: `/policy/getById/${id}`,
      method: 'get'
    })
  },
  // 修改
  update(policy) {
    return request({
      url: `/policy/update`,
      method: 'post',
      data: policy
    })
  }
}
